<template>
  <section>
    <span>{{widget.description}}</span>
  </section>
</template>

<script>
  export default {
    name: "tizhi-b",
    props: ['widget', 'showConfDialog'],
    created(){
      if(this.widget.data){
        console.log('挂件',this.widget)
        this.widget.data=null
        this.$emit('save',this.widget)
        return
      }
      if(!this.widget.config){
        this.widget.config = {}
      }
    },
    methods:{
      // confCancel(e){
      //   this.$emit('done',null)
      // },
      // confDone(e){
      //   this.$emit('done',this.widget)
      // }
    }
  }
</script>

<style lang="scss">

</style>
